package com.lee.forum.config;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lishuo
 * Date: 2023-09-29
 * Time: 18:58
 */

/**
 * 定义全局变量
 */
public class AppConfig {
    /**
     * 用户 Session 中的 key 值
     */
    public static final String USER_SESSION_KEY = "USER_SESSION_KEY";

    /**
     * 验证码（不能这样做，因为多线程可能bug）
     */
//    public static String checkCode;

    /**
     * session 中的验证码 key 值
     */
    public static final String CHECKCODE = "CHECK_CODE";

    /**
     * Redis中的热榜 key 前缀
     */
    public static final String HOT_ARTICLES_KEY = "hot_articles:";

    /**
     * Redis中的热点文章
     */
    public static final String ARTICLES_KEY = "article:";

    /**
     * Redis中的评论关联文章ID
     */
    public static final String REPLAY_ARTICLE_KEY = "reply_article:";

    /**
     * Redis中的评论ID
     */
    public static final String REPLAY_KEY = "reply:";

    /**
     * 消息队列名、交换机名、routingKey
     */
    public static final String MSG_QUEUE_NAME = "msg.queue1";
    public static final String MSG_EXCHANGE_NAME = "msgdirect.exchange";
    public static final String MSG_ROUTINGKEY = "send";

}
